﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;

public class MoveAction :MonoBehaviour,IMove
{
        /// <summary>
        /// 角色状态
        /// </summary>
		private string _status;

        protected int _direction;

        /// <summary>
        /// 模型
        /// </summary>
        //protected MovieClip _playerMovie;
        
        //public MovieClip playerMovie
        //{
        //    get { return _playerMovie; }
        //}


        /// <summary>
        /// 角色方向1:右，-1:左
        /// </summary>
        public int direction
        {
            get { return _direction; }
            set { _direction = value; }
        }
        /// <summary>
        /// 改变角色状态
        /// </summary>
        public string status
		{
            get { return _status; }
            set 
            { 
                _status = value;
                updataStatus(_status);
            }
		}
		/// <summary>
		/// 更新模型动作
		/// </summary>
		protected void updataStatus(string state)
		{
            //_playerMovie.play(state);
		}
		/// <summary>
        /// 移动到的坐标
		/// </summary>
		public void move(int xDistance, int yDistance)
		{
		}

        /// <summary>
        /// 三维坐标,z用于显示排序
        /// </summary>
        public Vector3 vPosition
        {
            get { return new Vector3(0,0,0); }
            set 
            {
                //_playerMovie.transform.position = value; 
            }
        }
}